<#assign s=JspTaglibs["/META-INF/tld/struts-tags.tld"] />
<#assign sjr=JspTaglibs["/META-INF/tld/struts-jquery-richtext-tags.tld"]/>
<@s.url value="" var="cntxpth"/>
<@s.set name="contextPath" value="#cntxpth"  />
<@s.set name="templateName" value="#templateName"/>
<@s.set name="resourcePath">/${contextPath}templates/${templateName}</@s.set>


<@s.form action="savePost" namespace="/blog" method="POST" id="savePostForm" >


<div class="grid_8">
    <h2>Post content</h2>
    <div class="img-border">
        <@sjr.ckeditor id="post.content" name="post.content" rows="10" cols="80" width="100%"
        value=""></@sjr.ckeditor>
    </div>
</div>

<div class="grid_4" id="form">

    <h2>Post description</h2>
        <fieldset>
            <label>
                <input type="text" value="Title" name="post.title" onBlur="if(this.value=='') this.value='Title'"
                       onFocus="if(this.value =='Title' ) this.value=''"/>
            </label>
            <label>
                <input type="text" value="Key words" name="post.keyWords"
                       onBlur="if(this.value=='') this.value='Key words'"
                       onFocus="if(this.value =='Key words' ) this.value=''"/>
            </label>
            <label>
                <input type="text" value="Description" name="post.description"
                       onBlur="if(this.value=='') this.value='Description'"
                       onFocus="if(this.value =='Description' ) this.value=''"/>
            </label>
            <label>
                <textarea name="post.shortDescription" onBlur="if(this.value==''){this.value='Short description'}"
                          onFocus="if(this.value=='Short description'){this.value=''}">Short description</textarea>
            </label>

            <div class="btns">
                <button type="reset"  style="border: none; background-color: transparent;">
                    <a href="#" class="button">Clear</a>
                </button>
                <button type="submit" style="border: none; background-color: transparent;">
                    <a href="#" class="button" >Save</a>
                </button>
            </div>
        </fieldset>
    </div>


<div class="clear"></div>
</@s.form>